package com.gxa.eurekaclient.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表(YongHu)实体类
 *
 * @author thinknovo
 * @since 2021-01-05 16:03:24
 * @version 1.0
 */
public class YongHu implements Serializable {
    private static final long serialVersionUID = 180930873646708376L;
    /**
    * 用户表主键id
    */
    private Integer id;
    /**
    * 用户名称
    */
    private String yongHuMingCheng;
    /**
    * 密码
    */
    private String miMa;
    /**
    * 姓名
    */
    private String xingMing;
    /**
    * 联系方式
    */
    private String lianXiFangShi;
    /**
    * 角色表外键id
    */
    private Integer jueSeId;

    private String touXiang;
    
    private String chuangJianRen;

    private Integer auth;

    public Integer getAuth() {
        return auth;
    }

    public void setAuth(Integer auth) {
        this.auth = auth;
    }

    /**
    * 创建时间
    */
    // 接收字符串日期，转换为date对象，前端必须传递 "2020-06-20 01:01:01"  这样的格式
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chuangJianShiJian;
    /**
    * 状态(0代表禁用 1代表启用)
    */
    private String zhuangTai;

    public String getTouXiang() {
        return touXiang;
    }

    public void setTouXiang(String touXiang) {
        this.touXiang = touXiang;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getYongHuMingCheng() {
        return yongHuMingCheng;
    }

    public void setYongHuMingCheng(String yongHuMingCheng) {
        this.yongHuMingCheng = yongHuMingCheng;
    }
        
    public String getMiMa() {
        return miMa;
    }

    public void setMiMa(String miMa) {
        this.miMa = miMa;
    }
        
    public String getXingMing() {
        return xingMing;
    }

    public void setXingMing(String xingMing) {
        this.xingMing = xingMing;
    }
        
    public String getLianXiFangShi() {
        return lianXiFangShi;
    }

    public void setLianXiFangShi(String lianXiFangShi) {
        this.lianXiFangShi = lianXiFangShi;
    }
        
    public Integer getJueSeId() {
        return jueSeId;
    }

    public void setJueSeId(Integer jueSeId) {
        this.jueSeId = jueSeId;
    }
        
    public String getChuangJianRen() {
        return chuangJianRen;
    }

    public void setChuangJianRen(String chuangJianRen) {
        this.chuangJianRen = chuangJianRen;
    }
        
    public Date getChuangJianShiJian() {
        return chuangJianShiJian;
    }

    public void setChuangJianShiJian(Date chuangJianShiJian) {
        this.chuangJianShiJian = chuangJianShiJian;
    }
        
    public String getZhuangTai() {
        return zhuangTai;
    }

    public void setZhuangTai(String zhuangTai) {
        this.zhuangTai = zhuangTai;
    }

    @Override
    public String toString() {
        return "YongHu{" +
                "id=" + id +
                ", yongHuMingCheng='" + yongHuMingCheng + '\'' +
                ", miMa='" + miMa + '\'' +
                ", xingMing='" + xingMing + '\'' +
                ", lianXiFangShi='" + lianXiFangShi + '\'' +
                ", jueSeId=" + jueSeId +
                ", touXiang='" + touXiang + '\'' +
                ", chuangJianRen='" + chuangJianRen + '\'' +
                ", chuangJianShiJian=" + chuangJianShiJian +
                ", zhuangTai='" + zhuangTai + '\'' +
                '}';
    }
}